<?
/**
 * <b>Hli_RegisterCredentialsType Class</b>
 * Published 21/12/2010 03:45:13
 *
 * @author Lars Sorhus (lars@saucecode.com.au)
 * @copyright sauceCode Pty Ltd.
 * @version 2.0.4.342.
 * @internal It's not recommended at all to modify this code.
 */

//Begin Class
class Hli_RegisterCredentialsType extends Hli_Serializer{
	public $production=NULL;
	public $sandbox=NULL;

	public function  __construct(){
		parent::__construct();
	}

	/**
	 * @method getCredentials
	 * @param $environment Hli_Constants::Env_{Constant}
	 * @return void
	 */
	public function getCredentials($environment){
		$this->data=($environment==Hli_Constants::Env_Production)?$this->production:$this->sandbox;
		return($this->data);
	}

	/**
	 * @method setProductionCredentials
	 * @param $appid String(125)
	 * @param $devid String(125)
	 * @param $certid String(125)
	 * @return void
	 */
	public function setProductionCredentials($appid,$devid,$certid){
		$this->production=array(
			"APP_ID"=>$appid,
			"DEV_ID"=>$devid,
			"CERT_ID"=>$certid
		);
	}

	/**
	 * @method setSandboxCredentials
	 * @param $appid String(125)
	 * @param $devid String(125)
	 * @param $certid String(125)
	 * @return void
	 */
	public function setSandboxCredentials($appid,$devid,$certid){
		$this->sandbox=array(
			"APP_ID"=>$appid,
			"DEV_ID"=>$devid,
			"CERT_ID"=>$certid
		);
	}
}
?>
